Phần mềm vẽ đồ thị C#
6.586 lượt xem;
- IEvaluatable.cs
- project /
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace VietGraph
6 {
7 public interface IEvaluatable
8 {
9
10 //Should return text for the expression
11 string ExpressionText
12 {
13 get;
14 set;
15 }
16
17 //Should return if the expression is valid and can be evaluated
18 bool IsValid
19 {
20 get;
21 }
22
23 ///<summary>This method should evaluate the expression and return the result as double. It should return double.NaN in the case the expression cant be evaluated e.g. ln( -ve no. )</summary>
24 ///<param name="dvalueX">The value of X at which we want to evaluate the expression</param>
25 ///<returns>The result of expression evaluation as a double</returns>
26 //
27 double Evaluate(double dvalueX);
28
29 }
30 }
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace VietGraph
6 {
7 public interface IEvaluatable
8 {
9
10 //Should return text for the expression
11 string ExpressionText
12 {
13 get;
14 set;
15 }
16
17 //Should return if the expression is valid and can be evaluated
18 bool IsValid
19 {
20 get;
21 }
22
23 ///<summary>This method should evaluate the expression and return the result as double. It should return double.NaN in the case the expression cant be evaluated e.g. ln( -ve no. )</summary>
24 ///<param name="dvalueX">The value of X at which we want to evaluate the expression</param>
25 ///<returns>The result of expression evaluation as a double</returns>
26 //
27 double Evaluate(double dvalueX);
28
29 }
30 }